<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <link rel="stylesheet" href="/Public/Admin/css/bootstrap.min.css">

</head>
<body style="margin-left: 50px;">
<h2>添加商品</h2>
<form action="" method="post" enctype="multipart/form-data" >
    <table border="1">
        <tr>
            <td>商品名称：</td>
            <td><input type="text" name="gname" class="form-control" required
            ></td>
        </tr>
        <tr>
            <td>商品分类：</td>
            <td><select name="c_id" class="form-control">
                <option value="">---请选择---</option>
                <?php if(is_array($data)): $i = 0; $__LIST__ = $data;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vol): $mod = ($i % 2 );++$i;?><option value="<?php echo ($vol["id"]); ?>"><?php echo ($vol["cname"]); ?></option><?php endforeach; endif; else: echo "" ;endif; ?>


            </select></td>
        </tr>
        <tr>
            <td>商品货号：</td>
            <td><input type="text" name="ghh" class="form-control" required></td>
        </tr>
        <tr>
            <td>商品数量：</td>
            <td><input type="text" name="gnum" class="form-control" required></td>
        </tr>
        <tr>
            <td>市场价：</td>
            <td><input type="text" name="gscj" class="form-control" required></td>
        </tr>
        <tr>
            <td>商城价：</td>
            <td><input type="text" name="gwzj"  class="form-control" required></td>
        </tr>
        <tr>
            <td>商品描述：</td>
            <td><textarea rows="10" cols="110" name="gdesc"  required></textarea></td>
        </tr>
        <tr>
            <td>商品图片：</td>
            <td><input type="file" name="gimg"></td>
        </tr>
    </table>
    <div style="padding-top: 10px">
      <input type="submit" value="发布" class="btn btn-primary">
     <input type="reset" value="重置" class="btn btn-primary">
    </div>

</form>
</body>
</html>